<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let nums=[1,2,3,4,5]
        let color=['黑色','白色','蓝色','灰色','紫色']
        console.log(nums);
        console.log(nums[1]);
        
        
        let fruits=['苹果','香蕉','榴莲','菠萝','哈密瓜']
        fruits.push('西瓜')
        console.log(fruits);
        let lastfruit=fruits.pop()
        console.log(fruits);
        
        
    </script>
</body>
</html>